var jwt = require('jsonwebtoken');

var token = jwt.sign({ id: 10001 }, 'shhhhh',{algorithm:"RS256",expiresIn:60});

var decoded = jwt.veridy( token,'shhhhh');